package com.jinmdz.app.api.api.model.common;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 字典请求数据
 *
 * @author LiCongLu
 * @date 2020-02-12 16:23
 */
@ApiModel(value = "字典请求数据", description = "字典请求数据")
public class DictTypeData extends BaseBean {
    /**
     * 字典类型编码
     */
    @ApiModelProperty(value = "字典类型编码", name = "dicType", position = 1)
    @AnValidate(name = "字典类型编码", required = true)
    private String dicType;

    /**
     * 字典数据编码
     */
    @ApiModelProperty(value = "字典数据编码", name = "typeCode", position = 2)
    @AnValidate(name = "字典数据编码", required = true, code = EValidateCode.NO_LESS_ZERO)
    private Integer typeCode;

    /**
     * 用途
     */
    @ApiModelProperty(value = "用途", name = "purpose", position = 3)
    @AnValidate(name = "用途", required = true)
    private String purpose;

    public String getDicType() {
        return dicType;
    }

    public DictTypeData setDicType(String dicType) {
        this.dicType = dicType;
        return this;
    }

    public Integer getTypeCode() {
        return typeCode;
    }

    public DictTypeData setTypeCode(Integer typeCode) {
        this.typeCode = typeCode;
        return this;
    }

    public String getPurpose() {
        return purpose;
    }

    public DictTypeData setPurpose(String purpose) {
        this.purpose = purpose;
        return this;
    }
}
